package com.example;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.IdcardUtil;

/**
 * @author Jason
 * @PACKAGE_NAME com.example
 * @Description Hutool组件使用
 * @date 2023-11-27 9:30
 */
public class Hutool {
    public static void main(String[] args) {
        String[] b = {"1","2","3","4","5"};
        Integer[] intArray = Convert.toIntArray(b);
        System.out.println(intArray.length);
        System.out.println(intArray.getClass());
        System.out.println(intArray.getClass().getTypeName());
        for (int i:intArray) {
            System.out.println(i);
        }


        //身份证工具
        boolean validCard = IdcardUtil.isValidCard("371726200209126011");
        System.out.println("身份证号是否合法：" + validCard);
    }
}
